package com.brush.brushcommon.common.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.brush.brushcommon.common.BasicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author debug
 * @since 2024-07-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user")
@Schema(name = "User对象", description = "用户表")
public class User extends BasicEntity{

    private static final long serialVersionUID = 1L;

    @Schema(description = "微信的Openid")
    private String wxOpenid;

    @Schema(description = "微信的sessionKey(选择存储)")
    private String sessionKey;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "性别")
    private String sex;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "微信头像路径")
    private String vxAvatar;

    @Schema(description = "是否可用 0可用 1不可用，默认0")
    private Integer status;

    @Schema(description = "密码")
    private String pwd;

    @Schema(description = "0用户登录，1管理员")
    private Integer type;

    @Schema(description = "创建人")
    private String gmtFounder;
}
